package com.agentlab.imitation.bean;

/**
 * WishListId entity. @author MyEclipse Persistence Tools
 */

public class WishListId implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String pc;
	private String zyzyxh;
	private String yxzyxh;

	public String getPc() {
		return pc;
	}

	public void setPc(String pc) {
		this.pc = pc;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	// Constructors

	/** default constructor */
	public WishListId() {
	}

	/** full constructor */
	public WishListId(Integer userid,String pc,String yxzyxh,String zyzyxh) {
		this.zyzyxh = zyzyxh;
		this.userid = userid;
		this.yxzyxh = yxzyxh;
		this.pc = pc;
	}

	// Property accessors

	public String getZyzyxh() {
		return this.zyzyxh;
	}

	public void setZyzyxh(String zyzyxh) {
		this.zyzyxh = zyzyxh;
	}

	public String getYxzyxh() {
		return this.yxzyxh;
	}

	public void setYxzyxh(String yxzyxh) {
		this.yxzyxh = yxzyxh;
	}

	

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WishListId other = (WishListId) obj;
		if (pc == null) {
			if (other.pc != null)
				return false;
		} else if (!pc.equals(other.pc))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals(other.userid))
			return false;
		if (yxzyxh == null) {
			if (other.yxzyxh != null)
				return false;
		} else if (!yxzyxh.equals(other.yxzyxh))
			return false;
		if (zyzyxh == null) {
			if (other.zyzyxh != null)
				return false;
		} else if (!zyzyxh.equals(other.zyzyxh))
			return false;
		return true;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((pc == null) ? 0 : pc.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		result = prime * result + ((yxzyxh == null) ? 0 : yxzyxh.hashCode());
		result = prime * result + ((zyzyxh == null) ? 0 : zyzyxh.hashCode());
		return result;
	}

}